import { defHttp } from '/@/utils/http/axios';
const baseAPi = '/DeviceModel/';
const baseAPi2 = '/SysDictType/';
/**
 * @description: 添加设备型号
 */
export function adddevicemodel(data) {
  return defHttp.post({ url: `${baseAPi}adddevicemodel`, data });
}

/**
 * @description: 删除设备型号
 */
export function deldevicemodel(data) {
  return defHttp.post({ url: `${baseAPi}deldevicemodel`, data });
}

/**
 * @description: 更新设备型号
 */
export function updatedevicemodel(data) {
  return defHttp.post({ url: `${baseAPi}updatedevicemodel`, data });
}

/**
 * @description: 获取设备型号
 */
export function getdevicemodels(data) {
  return defHttp.post({ url: `${baseAPi}getdevicemodels`, data });
}

/**
 * @description: 获取设备类别
 */
export function getdatalist(data) {
  return defHttp.post({ url: `${baseAPi2}getdatalist`, data });
}

/**
 * @description: 同步Mes数据
 */
export function updateequipments(data) {
  return defHttp.post({ url: `${baseAPi}syncmodeldata`, data });
}
